package org.dydl.service.system;

import org.dydl.common.dto.ResponseMessage;
import org.dydl.model.system.Goods;
import org.dydl.model.system.Product;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface IGoodsService {

	ResponseMessage save(Product product);

	ResponseMessage delete(int id);

	ResponseMessage getGoodsList(int page, int rows, String name);

	List<Goods> get(String name);

	void saveMaterial(List<Product> goods);

	List<Product> findByName(String name);

	ResponseMessage getGoodLists(String name,Pageable pageable);

	ResponseMessage getGoodsBySku(String sku, String type);

	ResponseMessage getMaterialByName(String name);

	List<Product> getGoodsByName(String name);

}
